﻿@model JewererBasic.STONE_EXPORTSTAFF

@{
    ViewBag.Title = "";

    var gd = new WebGrid(
            Model.STONE_EXPORTSTAFFDETAIL,
            canPage: true,
            rowsPerPage: 10,
            selectionFieldName: "selectedRow",
            ajaxUpdateContainerId: "gridContent"
        );
    gd.Pager(WebGridPagerModes.NextPrevious);
}

<h2>Staff Export Detail</h2>

<fieldset>
<a href="@Url.Action("TestingExportList", "Stone")">
    <input type="button" value="BACK" />
</a>

    <fieldset>
<table>
    <tr>
        <td>
            <strong>Export Id:</strong> @Model.IdExport
        </td>
        <td>
            <strong>Date:</strong> @Model.DayMake
        </td>
    </tr>
    <tr>
        <td>
            <strong>Exporter:</strong> @Model.IdCreater
        </td>
        <td>
            <strong>Worker Id:</strong> @Model.EMPLOYEE.Staff_Id
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div id="stoneListDiv">
                @gd.GetHtml(
                tableStyle: "table",
                headerStyle: "head",
                rowStyle: "row",
                alternatingRowStyle: "altRow",
                selectedRowStyle: "selectRow",
                columns: gd.Columns(
                gd.Column(header: "Stone Id", format: @<div style="width: 200px; text-align: center;"><span><span>@item.IdStone</span></span></div>),
                gd.Column(header: "Exported Weight", format: @<div style="width: 150px; text-align: center;"><span><span>@item.Weight</span></span></div>),
                gd.Column(header: "Exported Quantity", format: @<div style="width: 150px; text-align: center;"><span><span>@item.Numb</span></span></div>),
                gd.Column(header: "Return Weight", format: @<div style="width: 150px; text-align: center;"><span><span>@item.ReturnWeight</span></span></div>),
                gd.Column(header: "Return Quantity", format: @<div style="width: 150px; text-align: center;"><span><span>@item.ReturnQuantity</span></span></div>),
                gd.Column(header: "Reason", format: @<div style="width: 200px; text-align: center;"><span><span>@item.Reason</span></span></div>)
            ))
            </div>
        </td>
    </tr>
</table>
        </fieldset>
    </fieldset>